<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>帐号管理</title>
    <%@ include file="/common/meta.jsp" %>
    <%@ include file="/common/public_input.jsp" %>
    <script>
        $(document).ready(function () {
            //聚焦第一个输入框
            $("#password").focus();
            //为inputForm注册validate函数
            $("#inputForm").validate({
                rules:{
                    password:{
                        required:true,
                        minlength:3
                    },
                    passwordConfirm:{
                        equalTo:"#password"
                    }
                },
                messages:{
                    passwordConfirm:{
                        equalTo:"输入与上面相同的密码"
                    }
                }
            });
        });
    </script>
</head>

<body>
<div class="div-tabs-nav">
    <ul class="ui-tabs-nav">
        <li class="ui-tabs-selected">初始化密码</li>
    </ul>
</div>
<%--<h2><s:if test="id == null">创建</s:if><s:else>修改</s:else>用户</h2>--%>
<div class="ui-tabs-panel">
    <form id="inputForm" action="save.action?admin=0" method="post">
        <div id="message"><s:actionmessage theme="custom" cssClass="success"/></div>
        <div>初始化密码<s:if test="id!=null">信息</s:if><s:else>创建</s:else></div>
        <input type="hidden" name="id" value="<s:property value = "id"/>"/>

        <table class="noborder">


            <tr>
                <td>密码:</td>
                <td><input type="password" id="password" name="password" size="40" value=""/></td>
            </tr>
            <tr>
                <td>确认密码:</td>
                <td><input type="password" id="passwordConfirm" name="passwordConfirm" size="40" value=""/>
                </td>
            </tr>


        </table>
        <div align="left">
            <input class="button" type="submit" value="提交"/>&nbsp;
            <input type="reset" class="input-button" value="重置"/>
        </div>
    </form>
</div>
</body>
</html>

